using UnityEngine;
using QFramework;

// 1.请在菜单 编辑器扩展/Namespace Settings 里设置命名空间
// 2.命名空间更改后，生成代码之后，需要把逻辑代码文件（非 Designer）的命名空间手动更改
namespace QFramework.Example
{
	public partial class StrengthenCommand : ViewController,ISkill,IController
	{
        public string SkillName => "强化指令";

        public bool IsUnLocked { get ; set ; }

       
        /// <summary>
        /// 偏转护盾伤害
        /// </summary>
        private float copyItemModelDamage = 0;
        /// <summary>
        /// 偏转护盾旋转速度
        /// </summary>
        private float copyItemModelSpeed = 0;

        public void CallBack()
        {
            //throw new System.NotImplementedException();
        }

        public IArchitecture GetArchitecture()
        {
            return Global.Interface;
            //throw new System.NotImplementedException();
        }

        public void RemoveCallBack()
        {
            //throw new System.NotImplementedException();
        }

        void Start()
		{
            ///偏转护盾伤害
            copyItemModelDamage = DataManager.Instance.copyItemModel.AbilityDamage.Value;
            ///偏转护盾速度
            copyItemModelSpeed = DataManager.Instance.copyItemModel.AbilityItemSpeed.Value;
            // Code Here
            DataManager.Instance.copyItemModel.AbilityDamage.Value = copyItemModelDamage + copyItemModelDamage * 0.1f;
            DataManager.Instance.copyItemModel.AbilityItemSpeed.Value = copyItemModelSpeed + copyItemModelSpeed * 0.1f;

        }
	}
}
